From: John Crispin Date: Wed, 23 Dec 2015 14:43:47 +0000 (+0000) Subject: firmware-utils: allow mkfwimage2 to use - in partition names X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=e59a40f6c382d7ee7f8e6d800070dd3bec001a6e;p=project%2Ffirmware-utils.git firmware-utils: allow mkfwimage2 to use - in partition names Signed-off-by: Roman Yeryomin SVN-Revision: 47975 --- diff --git a/src/mkfwimage2.c b/src/mkfwimage2.c index 993c3d4..146b2ad 100644 --- a/src/mkfwimage2.c +++ b/src/mkfwimage2.c @@ -212,7 +212,7 @@ static int image_layout_add_partition(const char *part_desc) } d = &im.parts[im.part_count]; - t = sscanf(part_desc, "%15[0-9a-zA-Z]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%256s", + t = sscanf(part_desc, "%15[-0-9a-zA-Z]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%15[0-9a-fA-Fx]:%256s", d->partition_name, offset, length,